package com.ruoyi.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.Provinces;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UserBasicSettingMapper;
import com.ruoyi.system.domain.UserBasicSetting;
import com.ruoyi.system.service.IUserBasicSettingService;

/**
 * 用户基础设置Service业务层处理
 * 
 * @author wp
 * @date 2023-08-10
 */
@Service
public class UserBasicSettingServiceImpl extends ServiceImpl<UserBasicSettingMapper, UserBasicSetting> implements IUserBasicSettingService {
    @Autowired
    private UserBasicSettingMapper userBasicSettingMapper;

    @Override
    public List<UserBasicSetting> selectList(UserBasicSetting userBasicSetting) {
        return userBasicSettingMapper.list(userBasicSetting);
    }

    @Override
    public List<Provinces> selectParentCode(Integer cityCode) {
        return userBasicSettingMapper.selectParentCode(cityCode);
    }

    @Override
    public int removeByUserId(Long userId) {
        return userBasicSettingMapper.removeByUserId(userId);
    }

    @Override
    public UserBasicSetting getByUserId(Long userId) {
        return userBasicSettingMapper.getByUserId(userId);
    }
}
